package com.treasure.mall.biz.service.core.withdraw.impl;

import com.treasure.mall.biz.base.AbstractSearchableCrudService;
import com.treasure.mall.biz.base.SpecificationAndSort;
import com.treasure.mall.biz.dto.BaseSaveDTO;
import com.treasure.mall.biz.dto.BaseSearchDTO;
import com.treasure.mall.biz.entity.product.CategoryPO;
import com.treasure.mall.biz.entity.withdraw.BankPO;
import com.treasure.mall.biz.mapstruct.withdraw.BankMapStruct;
import com.treasure.mall.biz.repository.withdraw.BankRepository;
import com.treasure.mall.biz.service.core.withdraw.BankService;
import com.treasure.mall.biz.vo.withdraw.BankVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zoul
 * @version 1.0
 * @date 2020/6/14 15:41
 * @Description
 */
@Service
public class BankServiceImpl extends AbstractSearchableCrudService<BankPO, Long> implements BankService {
    @Autowired
    private BankRepository bankRepository;

    protected BankServiceImpl(BankRepository repository) {
        super(repository);
    }

    @Override
    protected SpecificationAndSort<BankPO> specificationAndSort(BaseSearchDTO searchDTO) {
        return null;
    }

    @Override
    public BankPO save(BaseSaveDTO saveDTO) {
        return null;
    }

    @Override
    public List<BankVO> getList() {
        List<BankPO> pos = bankRepository.getList();
        return BankMapStruct.INSTANCE.po2vos(pos);
    }
}
